Skip to content

Ignore FALLBACK output when recovering laptop display - #10622

Closed
adamritter wants to merge 1 commit into
omacom:quattrofrom
adamritter:fix/fallback-monitor-recovery
Closed

adamritter wants to merge 1 commit into
omacom:quattrofrom
adamritter:fix/fallback-monitor-recovery

Conversation

@adamritter

Copy link
Copy Markdown

When the last external monitor is unplugged while the laptop panel is disabled, Hyprland can create an active virtual FALLBACK output. The external-monitor helper counts every active non-internal output as external, including FALLBACK, so omarchy-hyprland-monitor-internal recover returns without clearing the disable flag. The laptop remains dark despite having no external display connected.

Exclude FALLBACK from the shared external-monitor predicate. This lets the existing recovery path re-enable the laptop panel while preserving detection of real external outputs, including mirrors.

Reproduced on a running laptop session: eDP-2 was disabled and FALLBACK was the only active output after unplugging the external display. Applying the exclusion and running recovery restored eDP-2 with DPMS enabled and workspace 2; a subsequent recovery kept it enabled. No compositor restart was needed. This was verified through live monitor state; no before/after screen capture is attached.

Validation:

  • Added a regression test exercising the actual helper and internal recovery command with stubbed Hyprland/toggle commands. It fails against unmodified upstream and passes with the fix.
  • Covers internal connector names, disabled external outputs, and active mirrored external outputs.
  • bash -n and git diff --check pass.
  • Ran ./test/all: CLI suite passed; shell suite reported six failing files. Four passed on rerun after providing OMARCHY_PKGS_PATH/OMARCHY_ISO_PATH and unsetting the inherited NO_COLOR. locate-test.sh passed after moving aside the test-generated bin/__pycache__ (its source scan attempts to decode .pyc files as UTF-8). network-qr-test.sh still exits at its automatic-interface case in this environment, and fails identically in a clean worktree of upstream a7030926. The monitor regression and existing monitor recovery tests passed in the aggregate run.

@bjarneo

bjarneo commented Sep 21, 2026

Copy link
Copy Markdown
Member

Automated duplication check: this pull request looks similar to #10586, which covers the same FALLBACK monitor exclusion. I keep that one open and close this one to consolidate review.

If you feel this is the wrong decision, please open the PR again with a note on the difference.

@bjarneo bjarneo closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants